package davion.study.summercloud.model;

public class FileStore {
    private Integer id;

    private Integer userId;

    private Integer maxSize;

    private Integer currentSize;

    public FileStore(Integer id, Integer userId, Integer maxSize, Integer currentSize) {
        this.id = id;
        this.userId = userId;
        this.maxSize = maxSize;
        this.currentSize = currentSize;
    }

    public FileStore() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
    }

    public Integer getCurrentSize() {
        return currentSize;
    }

    public void setCurrentSize(Integer currentSize) {
        this.currentSize = currentSize;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", maxSize=").append(maxSize);
        sb.append(", currentSize=").append(currentSize);
        sb.append("]");
        return sb.toString();
    }
}